package Student;

public class trapezoid {
	private float top;
	private float bottom;
	private float high;
	private float area;
	private float around;

	public float getArea() {
		return (top + bottom) * high / 2;
	}

	public void setArea(float area) {
		this.area = area;
	}

	public float getAround() {
		return (float) (top + bottom + (Math.sqrt(high * high
				+ (bottom - top) * (bottom - top) / 4) * 2));
	}

	public void setAround(float around) {
		this.around = around;
	}

	public float getTop() {
		return top;
	}

	public void setTop(float top) {
		this.top = top;
	}

	public float getBottom() {
		return bottom;
	}

	public void setBottom(float bottom) {
		this.bottom = bottom;
	}

	public float getHigh() {
		return high;
	}

	public void setHigh(float high) {
		this.high = high;
	}
}
